# -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from google.appengine.ext import db
from django.contrib.auth.models import User
#from datetime import *
import datetime

class HacoUser( db.Model):
    user =db.ReferenceProperty( User)
    zip =db.StringProperty()
    twitterID =db.StringProperty()
    address =db.StringProperty()
    geoPt =db.GeoPtProperty()

class Haco( db.Model):
    user  =db.ReferenceProperty( User)
    username =db.StringProperty( str(User))
    pnum  =db.IntegerProperty()
    temp  =db.FloatProperty()
    light =db.FloatProperty()
    watt  =db.FloatProperty()
    date  =db.DateTimeProperty()
    timestamp = db.DateTimeProperty()

class Mention( db.Model):
    postUser =db.StringProperty()
    postText =db.StringProperty()
    postDate =db.DateTimeProperty()
